package com.thoughtful;

import com.thoughtful.service.HelloService;
import com.thougtful.extension.ExtensionLoader;

/**
 * @author yushun
 * @createTime 2022/10/21 - 11:25
 **/
public class TestMain {

    public static void main(String[] args) throws ClassNotFoundException {
        ClassLoader classLoader = ExtensionLoader.class.getClassLoader();
        Class<?> aClass = classLoader.loadClass("com.thoughtful.service.impl.CatServiceImpl");
        System.out.println(aClass);
        System.out.println(classLoader);

        //HelloService dog = ExtensionLoader.getExtensionLoader(HelloService.class).getExtension("dog");
        //System.out.println(dog.say("123"));
    }

}
